// pages/orddateil/orddateil.js
Page({
  data: {
    dateil: ""
  },
  onLoad: function (options) {
    var that = this;
    var session3rd = wx.getStorageSync("session3rd");
    wx.request({
      url: "https://myzhongchou.net/public/index.php/api/order/order",
      data: {
        order_id: options.id,
        session3rd: session3rd
      },
      header: {
        'content-type': 'application/json'
      },
      success: function (res) {
        that.setData({
          dateil: res.data.msg
        })
      }
    })
  },
  button: function () {
    wx.switchTab({
      url: '../logs/logs'
    })
  }
})